from .models import ZTPResource


def res_id2name_mapping():
    return dict(ZTPResource.objects.values_list('pk', 'name'))
